// char_drv.h
#ifndef __CHAR_DRV_H__
#define __CHAR_DRV_H__

#include <linux/ioctl.h>

#define CHAR_DRV_IOCTL_MAGIC 'p'

#define CHAR_DRV_IOCTL_RESET _IO(CHAR_DRV_IOCTL_MAGIC, 0)  // 重置设备
#define CHAR_DRV_IOCTL_GET_STATUS _IOR(CHAR_DRV_IOCTL_MAGIC, 1, int)  // 获取设备状态
#define CHAR_DRV_IOCTL_SET_CONFIG _IOW(CHAR_DRV_IOCTL_MAGIC, 2, int)  // 设置设备配置

#endif // __CHAR_DRV_H__